package br.mg.bhe.ftpobre.fs;

/**
 * 
 * @author Aureliano
 */
public enum OperationalSystem {

	LINUX,
	WINDOWS;
	
	public static OperationalSystem getOsFromString(String system) {
		if (system == null) {
			return null;
		}
		
		system = system.toLowerCase();
		if (system.contains("windows")) {
			return WINDOWS;
		} else if (system.contains("linux")) {
			return LINUX;
		} else {
			return null;
		}
	}
}